package cn.lingyangwl.agile.infra.datamanage.mode.rqrs;

import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.framework.validation.group.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;


/**
 * 数据集
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class DatasetBase {
	@NotNull(message = ValidationCons.NOT_EMPTY, groups = UpdateGroup.class)
    private Long id;

 	@ApiModelProperty(value = "表名称")
	private String tableName;
	
 	@ApiModelProperty(value = "表注释")
	private String tableComment;
	
 	@ApiModelProperty(value = "显示名称")
	private String displayName;
	
     @NotNull(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	@ApiModelProperty(value = "数据源id")
	private Long datasourceId;
	
     @NotNull(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	@ApiModelProperty(value = "组id")
	private Long groupId;
	
 	@ApiModelProperty(value = "备注")
	private String remark;
}
